import store from '../admin/Store'

const copyObj = (obj = {}) => {
  let newObj = null
  // 判断是否需要继续进行递归
  if (typeof obj === 'object' && obj !== null) {
    newObj = obj instanceof Array ? [] : {}
    // 进行下一层递归克隆
    for (var i in obj) {
      newObj[i] = copyObj(obj[i])
    }
  } else {
    newObj = obj
  }
  return newObj
}
const FinanceStore = {
  FinanceStore: copyObj(store).Store
}
FinanceStore.FinanceStore.entity = { name: 'Store', prefix: `manage` }
// console.log('test', FinanceStore)
FinanceStore.FinanceStore.list.disabled_actions = ['new', 'lines']
export default FinanceStore
